package com.example.ymm.modules1.service.hl;

import com.example.ymm.base.BaseService;
import com.example.ymm.model.TableList;
import com.example.ymm.model.YmPageDto;
import com.example.ymm.modules1.entity.hl.dkn.DknProductMapping;
import com.example.ymm.modules1.query.hl.DknProductMappingQueryCriteria;
import com.example.ymm.modules1.service.dto.heng.DknProductMappingDto;
import com.example.ymm.modules1.service.dto.heng.ImportDknProductDto;
import com.example.ymm.modules1.service.dto.ms.MsOrderListQueryCriteria;

import java.util.List;

public interface DknProductMappingService extends BaseService<DknProductMapping> {


    TableList<DknProductMapping> list(DknProductMappingQueryCriteria criteria, YmPageDto ymPage);

    List<DknProductMapping> queryAll(DknProductMappingQueryCriteria criteria);


    DknProductMapping findByItemCode(String itemCode);

    List<String> importDknProduct(ImportDknProductDto dto);

    /**
     * 采购单列表-有映射
     * @param criteria
     * @return
     */
    List<DknProductMappingDto> purchaseOrderList(MsOrderListQueryCriteria criteria);


    /**
     * 查询 采购物料 交期最久的数据
     * @param criteria
     * @return
     */
    String purchaseOrderListMaxTime(MsOrderListQueryCriteria criteria);


    /**
     * 采购单列表-无映射
     * @param criteria
     * @return
     */
    List<DknProductMappingDto> purchaseOrderNoMappingList(MsOrderListQueryCriteria criteria);





}
